package com.shiminghui.String;

public class CellPhonePingBi {
    public static void main(String[] args) {

        String phone = "15831011331";

        String phone1= phone.substring(0,3);
        String phone2= phone.substring(phone.length()-4);

        String result = phone1+"****"+phone2;
        System.out.println(result);

    }
}
